Skip to content

feat: remove SchemaConfig::assertMaybeLazyObjectType()#1718

Closed
simPod wants to merge 2 commits into
webonyx:masterfrom
simPod:assert
Closed

feat: remove SchemaConfig::assertMaybeLazyObjectType()#1718
simPod wants to merge 2 commits into
webonyx:masterfrom
simPod:assert

Conversation

@simPod

@simPod simPod commented Jul 5, 2025

Copy link
Copy Markdown
Collaborator

The methods are typed so I was wondering that we don't need the runtime validation. Also can remove @throws InvariantViolation.

WDYT?

The methods are typed so I was wondering that we don't need the runtime validation. Also can remove `@throws InvariantViolation`.
@simPod simPod marked this pull request as draft July 5, 2025 07:20

@spawnia spawnia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with this, thank you.

@simPod simPod self-assigned this Jul 8, 2025
@simPod

simPod commented Jul 12, 2025

Copy link
Copy Markdown
Collaborator Author

We actually have some required validation there e.g. see test testRejectsASchemaWhoseRootTypeIsAnInputType

So it cannot be simply removed right now.

@simPod simPod closed this Jul 12, 2025
@simPod simPod deleted the assert branch July 12, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants